package com.sanqing.po;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Employee entity. @author MyEclipse Persistence Tools
 */

public class Employee implements java.io.Serializable {

	// Fields

	private Integer id;
	private Department department;
	private String name;
	private Boolean sex;
	private Date birthday;
	private String phone;
	private String email;
	private Position position;
	private Date createtime;
	private String content;
	private Users user;
	private Set institutions = new HashSet(0);
	private Set trainings = new HashSet(0);

	// Constructors

	/** default constructor */
	public Employee() {
	}

	/** minimal constructor */
	public Employee(String name, Date birthday, Date createtime) {
		this.name = name;
		this.birthday = birthday;
		this.createtime = createtime;
	}

	/** full constructor */
	public Employee(Department department, String name, Boolean sex,
			Date birthday, String phone, String email, Position position,
			Date createtime, String content, Users user, Set institutions,
			Set trainings) {
		this.department = department;
		this.name = name;
		this.sex = sex;
		this.birthday = birthday;
		this.phone = phone;
		this.email = email;
		this.position = position;
		this.createtime = createtime;
		this.content = content;
		this.user = user;
		this.institutions = institutions;
		this.trainings = trainings;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Department getDepartment() {
		return this.department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Boolean getSex() {
		return this.sex;
	}

	public void setSex(Boolean sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Position getPosition() {
		return this.position;
	}

	public void setPosition(Position position) {
		this.position = position;
	}

	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Users getUser() {
		return this.user;
	}
	
	public void setUser(Users user){
		this.user = user;
	}
	
	public Set getInstitutions() {
		return this.institutions;
	}

	public void setInstitutions(Set institutions) {
		this.institutions = institutions;
	}

	public Set getTrainings() {
		return this.trainings;
	}

	public void setTrainings(Set trainings) {
		this.trainings = trainings;
	}

}